<template>
    <div>
      <UserAdminMyWorksHead ref="works" />
      <router-view ref="target" @component="routerView"></router-view>
    </div>
</template>

<script>
    import UserAdminMyWorksHead from './UserAdminMyWorks-head'
    export default {
        name: "UserAdminMyWorks",
        components:{
            UserAdminMyWorksHead,
        },
        mounted(){
            this.$emit("component","myWorks")
        },
        methods:{
            routerView(val){
                this.$refs.works.getComponentClassify(val)
            },

            recovery(){
                this.$refs.target.getWorkInfo()
            },
            search(keyWord){
                this.$refs.target.searchInfo(keyWord)
            }
        }

    }
</script>

<style scoped>

</style>
